import worksChildren from "./home/works/works"
import gamesChildren from "./home/games/games"
import jianliChildren from "./home/jianli/jianli"
import modulesChildren from "./home/modules/modules"

const routes = [
	{
		path: "/home",
		component: () => import("@/view/main/main.vue"),
		name: "main",
		children: [
			{
				path: "biographical_notes",
				component: () => import("@/view/jianli/jianLi.vue"),
				name: "jianli",
				children: jianliChildren,
			},
			{
				path: "/games",
				component: () => import("@/view/games/game.vue"),
				name: "games",
				children: gamesChildren
			},
			{
				path: "/modules",
				component: () => import("@/view/modules/module.vue"),
				name: "modules",
				children: modulesChildren,
			},
			{
				path: "/works",
				component: () => import("@/view/works/works.vue"),
				name: "works",
				children: worksChildren,
			},
		],
	},
	{
		path: "/test",
		component: () => import("@/view/test.vue"),
	},
	{
		path: "/",
		redirect: "/home/biographical_notes/introduction",
	},
	{
		path: "/:path*",
		component: () => import("@/view/404/404.vue"),
	},
]

export default routes
